home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form BARCODS2
- Appearance = 0 'Flat
- BorderStyle = 1 'Fixed Single
- Caption = "BarCod Sample #2"
- ClientHeight = 4335
- ClientLeft = 1470
- ClientTop = 2445
- ClientWidth = 5295
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 4740
- Left = 1410
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 4335
- ScaleWidth = 5295
- Top = 2100
- Width = 5415
- Begin VB.TextBox Text1
- Appearance = 0 'Flat
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Index = 14
- Left = 3840
- TabIndex = 30
- Top = 3120
- Width = 1215
- End
- Begin VB.TextBox Text1
- Appearance = 0 'Flat
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Index = 13
- Left = 3840
- TabIndex = 28
- Top = 2760
- Width = 1215
- End
- Begin VB.TextBox Text1
- Appearance = 0 'Flat
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Index = 12
- Left = 3840
- TabIndex = 26
- Top = 2400
- Width = 1215
- End
- Begin VB.TextBox Text1
- Appearance = 0 'Flat
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Index = 11
- Left = 3840
- TabIndex = 24
- Top = 2040
- Width = 1215
- End
- Begin VB.TextBox Text1
- Appearance = 0 'Flat
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Index = 10
- Left = 3840
- TabIndex = 22
- Top = 1680
- Width = 1215
- End
- Begin VB.TextBox Text1
- Appearance = 0 'Flat
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Index = 9
- Left = 3840
- TabIndex = 20
- Top = 1320
- Width = 1215
- End
- Begin VB.TextBox Text1
- Appearance = 0 'Flat
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Index = 8
- Left = 1320
- TabIndex = 18
- Top = 3120
- Width = 1215
- End
- Begin VB.TextBox Text1
- Appearance = 0 'Flat
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Index = 7
- Left = 1320
- TabIndex = 16
- Top = 2760
- Width = 1215
- End
- Begin VB.TextBox Text1
- Appearance = 0 'Flat
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Index = 6
- Left = 1320
- TabIndex = 14
- Top = 2400
- Width = 1215
- End
- Begin VB.TextBox Text1
- Appearance = 0 'Flat
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Index = 5
- Left = 1320
- TabIndex = 12
- Top = 2040
- Width = 1215
- End
- Begin VB.TextBox Text1
- Appearance = 0 'Flat
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Index = 4
- Left = 1320
- TabIndex = 10
- Top = 1680
- Width = 1215
- End
- Begin VB.TextBox Text1
- Appearance = 0 'Flat
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Index = 3
- Left = 1320
- TabIndex = 8
- Top = 1320
- Width = 1215
- End
- Begin VB.TextBox Text1
- Appearance = 0 'Flat
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Index = 2
- Left = 1320
- TabIndex = 6
- Top = 960
- Width = 1215
- End
- Begin VB.TextBox Text1
- Appearance = 0 'Flat
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Index = 1
- Left = 1320
- TabIndex = 4
- Top = 600
- Width = 1215
- End
- Begin VB.TextBox Text1
- Appearance = 0 'Flat
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Index = 0
- Left = 1320
- TabIndex = 2
- Top = 240
- Width = 1215
- End
- Begin VB.CommandButton Command2
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Print Barcode Sample"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 2760
- TabIndex = 1
- Top = 720
- Width = 2295
- End
- Begin VB.CommandButton Command1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Exit Sample"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 2760
- TabIndex = 0
- Top = 240
- Width = 2295
- End
- Begin BarcodLib.Barcod Barcode1
- Height = 495
- Left = 240
- TabIndex = 33
- Top = 4560
- Width = 4815
- _Version = 65542
- _ExtentX = 8493
- _ExtentY = 873
- _StockProps = 75
- BackColor = 16777215
- BarWidth = 0
- Direction = 0
- Style = 3
- UPCNotches = 0
- End
- Begin VB.Label Label2
- Appearance = 0 'Flat
- Caption = $"BARCODS2.frx":0000
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 615
- Left = 240
- TabIndex = 32
- Top = 3600
- Width = 4815
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- Caption = "Barcode 15"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Index = 14
- Left = 2760
- TabIndex = 31
- Top = 3180
- Width = 1095
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- Caption = "Barcode 14"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Index = 13
- Left = 2760
- TabIndex = 29
- Top = 2820
- Width = 1095
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- Caption = "Barcode 13"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Index = 12
- Left = 2760
- TabIndex = 27
- Top = 2460
- Width = 1095
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- Caption = "Barcode 12"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Index = 11
- Left = 2760
- TabIndex = 25
- Top = 2100
- Width = 1095
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- Caption = "Barcode 11"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Index = 10
- Left = 2760
- TabIndex = 23
- Top = 1740
- Width = 1095
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- Caption = "Barcode 10"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Index = 9
- Left = 2760
- TabIndex = 21
- Top = 1380
- Width = 1095
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- Caption = "Barcode 9"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Index = 8
- Left = 240
- TabIndex = 19
- Top = 3180
- Width = 1095
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- Caption = "Barcode 8"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Index = 7
- Left = 240
- TabIndex = 17
- Top = 2820
- Width = 1095
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- Caption = "Barcode 7"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Index = 6
- Left = 240
- TabIndex = 15
- Top = 2460
- Width = 1095
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- Caption = "Barcode 6"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Index = 5
- Left = 240
- TabIndex = 13
- Top = 2100
- Width = 1095
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- Caption = "Barcode 5"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Index = 4
- Left = 240
- TabIndex = 11
- Top = 1740
- Width = 1095
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- Caption = "Barcode 4"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Index = 3
- Left = 240
- TabIndex = 9
- Top = 1380
- Width = 1095
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- Caption = "Barcode 3"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Index = 2
- Left = 240
- TabIndex = 7
- Top = 990
- Width = 1095
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- Caption = "Barcode 2"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Index = 1
- Left = 240
- TabIndex = 5
- Top = 660
- Width = 1095
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- Caption = "Barcode 1"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 255
- Index = 0
- Left = 240
- TabIndex = 3
- Top = 300
- Width = 1095
- End
- Attribute VB_Name = "BARCODS2"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Command1_Click()
- End
- End Sub
- Private Sub Command2_Click()
- Dim I As Integer
- Screen.MousePointer = 11
- Printer.Print
- Printer.ScaleMode = 1
- Barcode1.PrinterScaleMode = Printer.ScaleMode
- For I = 0 To 14
- Barcode1.Caption = Text1(I).Text
- Barcode1.PrinterLeft = 1440 + (3.25 * 1440) * Int(I / 8)
- Barcode1.PrinterTop = 1440 + 1440 * (I Mod 8)
- Barcode1.PrinterWidth = 3 * 1440
- Barcode1.PrinterHeight = 720
- Barcode1.PrinterHDC = Printer.hDC
- Printer.CurrentX = Barcode1.PrinterLeft
- Printer.CurrentY = Barcode1.PrinterTop + Barcode1.PrinterHeight + 180
- Printer.Print Barcode1.Displayed
- Next I
- Printer.EndDoc
- Screen.MousePointer = 0
- End Sub
- Private Sub Form_Load()
- Dim I As Integer
- Me.Left = (Screen.Width - Me.Width) / 2
- Me.Top = (Screen.Height - Me.Height) / 2
- For I = 0 To 14
- Text1(I).Text = Chr$(I + 65) + Format$(I)
- Next I
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- End
- End Sub
-